Testing

1. Be sure JP1 jumper is in NORM position
2. Connect JTAG and PC using serial cable (or USB/serial dongle)
3. Run AVR Studio

Initial test

At this moment do not connect JTAG and target system. We only need RS232 connection between PC and JTAG.

Select Tools/Program AVR/Connect from main menu of AVR Studio*

AVR Studio menu

In the dialog Select AVR Programmer dialog box select JTAG ICE as platform and appropriate serial port (in the example below it is COM1).

Select programmer

Success

If everything is ok and you selected the right serial port the following dialog box should appear:

JTAG adapter detected

It says your JTAG was detected but it can not connect with the target device which in this case is true.

Fail

If JTAG can not be detected you see Select device dialog but the window title is changed to Connect failed.

JTAG connection failed

Now you can read Usage section to see how to use JTAG with real devices.

Typical errors

1. Wrong serial port
2. No power
3. JP1 in BOOT position instead of NORM
4. ATmega16 not properly programmed
5. PCB improperly assembled

AVR Studio 4.13 SP2 has a bug that generates an error trying to read fuses using the JTAG interface. Fix is available on Atmel website

please kindly tel me that

please kindly tel me that what are the pins that will be connected in NORM and BOOT positions of JP1? and can i use 33k resistor as 36k isn't available??

You can use 33k but the AVR

You can use 33k but the AVR Studio will show wrong voltage. In fact it does not matter so you can use what you want. To get the right voltage you should also change 150k resistor, the rule is 105/36=4.166 so x/33=4.166 and x=137 so you must use something like 137k.
But as I said the wrong voltage can be ignored so you can use 33k

See the schematic and PCB to see what BOOT/NORM are connected to.

Connection fails!

Connection always fails, I checked the circuit for the typical errors but didn't work!

I just replaced the 150K and 36K resistors with 100K and 22K ones, what is the function of these resistors?
What is the baud rate of the serial communication?